<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>系统信息管理</title>
	<#include "/pages/include/head.ftl" />
	<#import "/pages/import/images.ftl" as img />
	<#import "/pages/import/helper.ftl" as h />
	<#assign contextPath = request.contextPath/>
	<style>
	
	</style>
	<script>
	</script>
</head>
<body>

<div class="page-top-bar">
<ul class="path">系统信息管理<span>&gt;</span>系统信息</ul>
</div>

<#-- grid toolbar -->
<div class="function-bar">
<ul class="form-function">
	<li><a id="systemGrid-new"><img src="${contextPath}/images/ico16/ico-add.gif" alt="新建" border="0" title="新建" /></a></li>
    <li><a id="systemGrid-edit"><img src="${contextPath}/images/ico16/ico-edit.gif" alt="修改" title="修改" /></a></li>
    <li><a id="systemGrid-delete"><img src="${contextPath}/images/ico16/ico-cancel.gif" alt="删除" title="删除" /></a></li>
    <li class="toolbar-line"></li>
    <li><a><img src="${contextPath}/images/ico16/ico-search.gif" alt="设置激活状态" title="设置激活状态"/>状态设置</a></li>
</ul>
</div>
<@rw.gridToolbar grid="systemGrid"/>
<@s.url var="newurl" action="new" namespace="/system" />
<@s.url var="editurl" action="edit" namespace="/system" />
<script>
$("#systemGrid-new").colorbox({
	href: "${newurl}",
	width: "75%",
	height: "75%",
	overlayClose: false
});
$(function(){
	$("#systemGrid-edit").click(function(){
       var selectedIds = $("#systemGrid").jqGrid('getGridParam','selarrrow');
       if(selectedIds.length>1){
         alert("只能选择一个进行修改");
         return;
       }
       if(selectedIds.length==0){
         alert("请选中你所需要修改的记录");
         return;
       }
	   page('edit.action?id='+selectedIds);
	});
});
</script>

<div class="list-container">
	<@rw.gridForm id="searchform" grid="systemGrid">
	<div class="list-search">
	<ul>
		<li><label for="">系统名称：</label><input name="criteria.name" type="text" class="input-common input-word-10" /></li>
	    <li><label for="">系统注册序列号：</label><input name="criteria.serialNumber" type="text" class="input-common input-word-10" /></li>
		<li><label for="">活动状态：</label>
			<select id="" name="criteria.status" class="select-word-10">
	            <option value="">全部</option>
		    	<option value="ENABLED">活动</option>
	            <option value="DISABLED">停止</option>
			</select>
		</li>
		<li class="search-btn-area">
	      <div class="btn-order">
	        <ul>
	          <li class="left-normal"></li>
	          <li class="middle-normal" id="submit"><img src="${img.search}" alt="查询" />查 询</li>
	          <li class="right-normal"></li>
	       </ul>
	      </div>
		</li>
	</ul>
	</div>
	</@rw.gridForm>
</div><#--list container-->

<@s.url id="showurl" action="systemGridShow" namespace="/widgets" />
<@rw.grid 
	id="systemGrid" 
	caption="系统信息" 
	pager="true"
	gridModel="gridModel"
	rowList="10,15,20"
	rowNum="10"
	rownumbers="true"
	multiselect="true"
	width="880"
	onGridCompleteTopics="grid-complete">
	<@sj.gridColumn name="name" 		index="name"			title="系统名称"			sortable="false"/>
	<@sj.gridColumn name="serialNumber" index="serialNumber"	title="系统注册序列号" 	formatter="showlink" formatoptions="{baseLinkUrl:'%{showurl}'}" />
	<@sj.gridColumn name="serialNumber" index="serialNumber"	title="系统标识" sortable="false"/>
	<@sj.gridColumn name="registryDate" index="registryDate"	title="注册日期"	/>
	<@sj.gridColumn name="url"			index="url"				title="系统URI" 	sortable="false"/>
	<@sj.gridColumn name="description"	name="description"		title="描述"	 	sortable="false"/>
	<@sj.gridColumn name="status"		index="status"			title="状态"		formatter="icon" sortable="false"/>
</@rw.grid>

</body>
</html>